package com.atguigu.order.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "order") //可以无需配合@RefreshScope就能监听配置刷新
@Data
public class OrderProperties {
    private String timeout;
    private String autoConfirm;
    private String dbUrl;
    private String dbUsername;
    private String dbPassword;
}
